package cn.usian.service.impl;

import cn.usian.dao.StudentDao;
import cn.usian.pojo.Student;
import cn.usian.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class StudentServiceImpl implements StudentService {

    @Resource
    private StudentDao studentDao;

    public List<Student> findAll() {
        return studentDao.selectList(null);
    }
}
